package com.ysd.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dapeng
 * @since 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TestPaper对象", description="")
public class TestPaper extends Model<TestPaper> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "试卷标题")
    private String title;

    @ApiModelProperty(value = "时长")
    private Integer duration;

    @ApiModelProperty(value = "状态 ")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "创建人")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "题的数量")
    private Integer topicNum;

    @ApiModelProperty(value = "所属课程Id")
    private Integer courseId;

    @ApiModelProperty(value = "所属课程名称")
    private String courseName;

    @ApiModelProperty(value = "1自己组卷 2老师组卷")
    private Integer type;

    @ApiModelProperty(value = "考试类型 1:模拟试题 4:考试测试'")
    private Integer testMode;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
